﻿using Restaurant.entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Restaurant
{
   
    public partial class Login : Form
    {
        MainForm mr = new MainForm();
        public Login()
        {
            InitializeComponent();
        }

        private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {

        }

        private void Login_Load(object sender, EventArgs e)
        {
            string urlPath = Environment.CurrentDirectory + "/CD/login.html";
            urlPath = urlPath.Replace("%20", " ");
            //webBrowser1.Navigate(urlPath);
            SData.init();
        }

        private void registerbtn_Click(object sender, EventArgs e)
        {
            registerFrm regsfrm = new registerFrm();
            regsfrm.Location =new Point(31, 160);

            Controls.Add(regsfrm);
            regsfrm.BringToFront();

        }

        private void button1_Click(object sender, EventArgs e)
        {
            mr.Show();
            this.Hide();
        }
    }
}
